// 组合式API（主流）
import {createApp,ref} from './vue.esm.js'
createApp({
    setup() { 
        let show = ref(true);
        let students=ref([
            {id:1,name:"Mark",age:18},
            {id:2,name:"Amy",age:17},
            {id:3,name:"Jack",age:19}
        ]);

        function met(){
            this.show=false
        };

        // 键值一样可以省略
        return {
            show:show,students,met
        }
    }
}).mount("#app")